package com.wan.lession56.web.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

@WebFilter(filterName = "Filter01_Role",value = "/*")
public class Filter01_Role implements Filter {
    @Override
    public void destroy() {
    }

    @Override
    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {
        System.out.println("过滤器进去前");
        chain.doFilter(req, resp);
        System.out.println("过滤器回来");
    }

    @Override
    public void init(FilterConfig config) throws ServletException {

    }

}
